﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///AdminBasePage 的摘要说明
/// </summary>
public class AdminBasePage : System.Web.UI.Page
{
    public AdminBasePage()
    {
        //
        //TODO: 在此处添加构造函数逻辑
        //
    }

    protected override void OnPreInit(EventArgs e)
    {
        if (Session["MemberID"] == null)
        {
            FineUI.PageContext.Redirect("/admin/Login.aspx", "_top");
            //Response.Write("<script>top.location='/admin/Login.aspx';</script>");
            //Response.End();
        }

        base.OnPreInit(e);
    }

    public int MemberID { get { return Convert.ToInt32(Session["MemberID"]); } }
    public string MemberName { get { return Session["MemberName"].ToString(); } }
}